class CreateFetchersTable < ActiveRecord::Migration
  def self.up
    create_table :fetchers do |t|
      t.integer :replica_id
      t.boolean :done, :default => false
      t.string  :action
      t.string  :filename
      t.timestamps
    end
    
    add_column :replicas, :available, :boolean, :default => false
  end

  def self.down
    remove_column :replicas, :available
    drop_table :fetchers
  end
end
